package cn.wolfcode.trip.base.domain;

import com.alibaba.druid.support.json.JSONUtils;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
/**
 * 门票
 */
@JsonIgnoreProperties("handler")//转json数据时不要序列化handler
public class Ticket extends BaseDomain {

    //门票名称
    private String name;

    //门票价格
    private Integer price;

    //景点
    private Scenic scenic;

    /*public String getJson() {
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("id", id);
        map.put("name", name);
        map.put("price", price);
        map.put("scenicId", scenic.getId());
        return JSONUtils.toJSONString(map);
    }*/
}